Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is a fake PR to test GH actions #2421

Closed

Conversation

robyngit
Copy link
Member

@robyngit robyngit commented May 21, 2024

The goal is to test if our setup with reviewdog automatically catches linting and formatting errors on PRs.

@@ -468,6 +468,14 @@ define([
$("body").off("activate");
$(window).off("resize");
},

tempMethodWithLintingFormattingErrors: function() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <func-names> reported by reviewdog 🐶
Unexpected unnamed method 'tempMethodWithLintingFormattingErrors'.

@@ -468,6 +468,14 @@
$("body").off("activate");
$(window).off("resize");
},

tempMethodWithLintingFormattingErrors: function() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <object-shorthand> reported by reviewdog 🐶
Expected method shorthand.

Suggested change
tempMethodWithLintingFormattingErrors: function() {
tempMethodWithLintingFormattingErrors() {


tempMethodWithLintingFormattingErrors: function() {
const a = 1;
a = 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-const-assign> reported by reviewdog 🐶
'a' is constant.


tempMethodWithLintingFormattingErrors: function() {
const a = 1;
a = 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'a' is assigned a value but never used.

tempMethodWithLintingFormattingErrors: function() {
const a = 1;
a = 2;
b = 99;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-undef> reported by reviewdog 🐶
'b' is not defined.

const a = 1;
a = 2;
b = 99;
console.log("This is a test of the linting errors.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <no-console> reported by reviewdog 🐶
Unexpected console statement.


tempMethodWithLintingFormattingErrors: function() {
const a = 1;
a = 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-const-assign> reported by reviewdog 🐶
'a' is constant.


tempMethodWithLintingFormattingErrors: function() {
const a = 1;
a = 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'a' is assigned a value but never used.

tempMethodWithLintingFormattingErrors: function() {
const a = 1;
a = 2;
b = 99;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-undef> reported by reviewdog 🐶
'b' is not defined.

const a = 1;
a = 2;
b = 99;
console.log("This is a test of the linting errors.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <no-console> reported by reviewdog 🐶
Unexpected console statement.

Comment on lines 472 to 478
tempMethodWithLintingFormattingErrors: function() {
const a = 1;
a = 2;
b = 99;
console.log("This is a test of the linting errors.");

}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change
tempMethodWithLintingFormattingErrors: function() {
const a = 1;
a = 2;
b = 99;
console.log("This is a test of the linting errors.");
}
tempMethodWithLintingFormattingErrors: function () {
const a = 1;
a = 2;
b = 99;
console.log("This is a test of the linting errors.");
},

Copy link
Contributor

Hi! Thanks for contributing to MetacatUI 🎉

As we strive to improve our code quality, we've implemented automated checks to help ensure all contributions meet the set of standards outlined in the contributing guidelines. All of the checks have passed! ✅ Here's a summary of the checks that were performed:

  • Formatting: ❌ FAIL
    • Checks for standardized indenting, spacing, line breaks, etc. using prettier
  • Linting: ❌ FAIL
    • Checks JS files for code quality, style issues, and JSdoc comments using ESLint. Generally follows the Airbnb style guide
  • Unit Tests: ✅ PASS
    • Runs unit tests to ensure that the code changes do not break existing functionality. If you have added new functionality, please add tests to cover it.
  • JSDoc: ✅ PASS
    • Ensures that building the docs website succeeds and that there are no JSDoc warnings.

@@ -468,6 +468,13 @@ define([
$("body").off("activate");
$(window).off("resize");
},

tempMethodWithLintingFormattingErrorsRenamed: function () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <func-names> reported by reviewdog 🐶
Unexpected unnamed method 'tempMethodWithLintingFormattingErrorsRenamed'.

@@ -468,6 +468,13 @@ define([
$("body").off("activate");
$(window).off("resize");
},

tempMethodWithLintingFormattingErrorsRenamed: function () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <object-shorthand> reported by reviewdog 🐶
Expected method shorthand.

Suggested change
tempMethodWithLintingFormattingErrorsRenamed: function () {
tempMethodWithLintingFormattingErrorsRenamed () {


tempMethodWithLintingFormattingErrorsRenamed: function () {
const a = 1;
a = 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-const-assign> reported by reviewdog 🐶
'a' is constant.


tempMethodWithLintingFormattingErrorsRenamed: function () {
const a = 1;
a = 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'a' is assigned a value but never used.

tempMethodWithLintingFormattingErrorsRenamed: function () {
const a = 1;
a = 2;
b = 999;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <no-undef> reported by reviewdog 🐶
'b' is not defined.

Comment on lines +1 to +4
| Test | Result | Local Command | Description |
|:--------------:|:--------------:|-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Formatting** | {{ .formatting_out_md }} | `npm run format` | Automatically standardizes formatting, checks for syntax errors |
| **Linting** | {{ .linting_out_md }} | `npm run lint` | Checks JS files for code quality, style issues, and JSdoc comments using [ESLint](https://eslint.org/). Generally follows the [Airbnb style guide](https://github.com/airbnb/javascript) |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change
| Test | Result | Local Command | Description |
|:--------------:|:--------------:|-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Formatting** | {{ .formatting_out_md }} | `npm run format` | Automatically standardizes formatting, checks for syntax errors |
| **Linting** | {{ .linting_out_md }} | `npm run lint` | Checks JS files for code quality, style issues, and JSdoc comments using [ESLint](https://eslint.org/). Generally follows the [Airbnb style guide](https://github.com/airbnb/javascript) |
| Test | Result | Local Command | Description |
| :------------: | :----------------------: | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --- |
| **Formatting** | {{ .formatting_out_md }} | `npm run format` | Automatically standardizes formatting, checks for syntax errors |
| **Linting** | {{ .linting_out_md }} | `npm run lint` | Checks JS files for code quality, style issues, and JSdoc comments using [ESLint](https://eslint.org/). Generally follows the [Airbnb style guide](https://github.com/airbnb/javascript) |

| **Formatting** | {{ .formatting_out_md }} | `npm run format` | Automatically standardizes formatting, checks for syntax errors |
| **Linting** | {{ .linting_out_md }} | `npm run lint` | Checks JS files for code quality, style issues, and JSdoc comments using [ESLint](https://eslint.org/). Generally follows the [Airbnb style guide](https://github.com/airbnb/javascript) |
| **Unit Tests** | {{ .unit_out_md }} | `npm test` | Runs unit tests to ensure that the code changes do not break existing functionality. |
| **JSDoc** | {{ .jsdoc_out_md }} | `npm run jsdoc-dry-run` | Ensures that building the docs website succeeds and that there are no JSDoc warnings. |s
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change
| **JSDoc** | {{ .jsdoc_out_md }} | `npm run jsdoc-dry-run` | Ensures that building the docs website succeeds and that there are no JSDoc warnings. |s
| **JSDoc** | {{ .jsdoc_out_md }} | `npm run jsdoc-dry-run` | Ensures that building the docs website succeeds and that there are no JSDoc warnings. | s |

Comment on lines +5 to +12
- **Formatting**: {{ .formatting_out_md }}
- Checks for standardized indenting, spacing, line breaks, etc. using [prettier](https://prettier.io/)
- **Linting**: {{ .linting_out_md }}
- Checks JS files for code quality, style issues, and JSdoc comments using [ESLint](https://eslint.org/). Generally follows the [Airbnb style guide](https://github.com/airbnb/javascript)
- **Unit Tests**: {{ .unit_out_md }}
- Runs unit tests to ensure that the code changes do not break existing functionality. If you have added new functionality, please add tests to cover it.
- **JSDoc**: {{ .jsdoc_out_md }}
- Ensures that building the docs website succeeds and that there are no JSDoc warnings.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change
- **Formatting**: {{ .formatting_out_md }}
- Checks for standardized indenting, spacing, line breaks, etc. using [prettier](https://prettier.io/)
- **Linting**: {{ .linting_out_md }}
- Checks JS files for code quality, style issues, and JSdoc comments using [ESLint](https://eslint.org/). Generally follows the [Airbnb style guide](https://github.com/airbnb/javascript)
- **Unit Tests**: {{ .unit_out_md }}
- Runs unit tests to ensure that the code changes do not break existing functionality. If you have added new functionality, please add tests to cover it.
- **JSDoc**: {{ .jsdoc_out_md }}
- Ensures that building the docs website succeeds and that there are no JSDoc warnings.
- **Formatting**: {{ .formatting_out_md }}
- Checks for standardized indenting, spacing, line breaks, etc. using [prettier](https://prettier.io/)
- **Linting**: {{ .linting_out_md }}
- Checks JS files for code quality, style issues, and JSdoc comments using [ESLint](https://eslint.org/). Generally follows the [Airbnb style guide](https://github.com/airbnb/javascript)
- **Unit Tests**: {{ .unit_out_md }}
- Runs unit tests to ensure that the code changes do not break existing functionality. If you have added new functionality, please add tests to cover it.
- **JSDoc**: {{ .jsdoc_out_md }}
- Ensures that building the docs website succeeds and that there are no JSDoc warnings.

Comment on lines +9 to +16
- **Formatting**: {{ .formatting_out_md }}
- Checks for standardized indenting, spacing, line breaks, etc. using [prettier](https://prettier.io/)
- **Linting**: {{ .linting_out_md }}
- Checks JS files for code quality, style issues, and JSdoc comments using [ESLint](https://eslint.org/). Generally follows the [Airbnb style guide](https://github.com/airbnb/javascript)
- **Unit Tests**: {{ .unit_out_md }}
- Runs unit tests to ensure that the code changes do not break existing functionality. If you have added new functionality, please add tests to cover it.
- **JSDoc**: {{ .jsdoc_out_md }}
- Ensures that building the docs website succeeds and that there are no JSDoc warnings.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change
- **Formatting**: {{ .formatting_out_md }}
- Checks for standardized indenting, spacing, line breaks, etc. using [prettier](https://prettier.io/)
- **Linting**: {{ .linting_out_md }}
- Checks JS files for code quality, style issues, and JSdoc comments using [ESLint](https://eslint.org/). Generally follows the [Airbnb style guide](https://github.com/airbnb/javascript)
- **Unit Tests**: {{ .unit_out_md }}
- Runs unit tests to ensure that the code changes do not break existing functionality. If you have added new functionality, please add tests to cover it.
- **JSDoc**: {{ .jsdoc_out_md }}
- Ensures that building the docs website succeeds and that there are no JSDoc warnings.
- **Formatting**: {{ .formatting_out_md }}
- Checks for standardized indenting, spacing, line breaks, etc. using [prettier](https://prettier.io/)
- **Linting**: {{ .linting_out_md }}
- Checks JS files for code quality, style issues, and JSdoc comments using [ESLint](https://eslint.org/). Generally follows the [Airbnb style guide](https://github.com/airbnb/javascript)
- **Unit Tests**: {{ .unit_out_md }}
- Runs unit tests to ensure that the code changes do not break existing functionality. If you have added new functionality, please add tests to cover it.
- **JSDoc**: {{ .jsdoc_out_md }}
- Ensures that building the docs website succeeds and that there are no JSDoc warnings.

Comment on lines +23 to +26
- Run `npm run format` to automatically fix formatting issues
- Run `npm run lint` to see linting issues
- Run `npm test` to run unit tests and see any failures
- Run `npm run jsdoc-dry-run` to see JSDoc warnings
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change
- Run `npm run format` to automatically fix formatting issues
- Run `npm run lint` to see linting issues
- Run `npm test` to run unit tests and see any failures
- Run `npm run jsdoc-dry-run` to see JSDoc warnings
- Run `npm run format` to automatically fix formatting issues
- Run `npm run lint` to see linting issues
- Run `npm test` to run unit tests and see any failures
- Run `npm run jsdoc-dry-run` to see JSDoc warnings

Comment on lines 36 to 38
eslint_flags: 'src'
filter_mode: 'diff_context'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change
eslint_flags: 'src'
filter_mode: 'diff_context'
eslint_flags: "src"
filter_mode: "diff_context"

with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
filter_mode: 'diff_context'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change
filter_mode: 'diff_context'
filter_mode: "diff_context"

id: test
run: npm test
continue-on-error: true

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change

@@ -468,6 +468,13 @@ define([
$("body").off("activate");
$(window).off("resize");
},

tempMethodWithLintingFormattingErrorsRenamed: function () {
const a = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change
const a = 1;
const a = 1;

Comment on lines +475 to +477
b = 999;
console.log("This is a test of the linting errors.");
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change
b = 999;
console.log("This is a test of the linting errors.");
}
b = 999;
console.log("This is a test of the linting errors.");
},

Comment on lines +36 to +37
eslint_flags: 'src'
filter_mode: 'diff_context'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change
eslint_flags: 'src'
filter_mode: 'diff_context'
eslint_flags: "src"
filter_mode: "diff_context"

eslint_flags: 'src'
filter_mode: 'diff_context'
fail_on_error: true

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[prettier] reported by reviewdog 🐶

Suggested change

@robyngit robyngit force-pushed the feature-2096-linting-formatting branch 2 times, most recently from 2d57d15 to 92f65bc Compare May 28, 2024 22:05
@robyngit robyngit closed this May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant